/*
 * @Author: cgl
 * @Date: 2023-04-13 15:59:04
 * @LastEditors: cgl
 * @LastEditTime: 2023-05-08 10:29:01
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\person\personCertificate.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询员工证书列表
export function listPersonCertificate(params) {
  return request({
    url: '/basic/entrust/workingPersonCertificate/list',
    method: 'get',
    params
  })
}
// 导出员工证书列表
export function exportPersonCertificate(data) {
  return request({
    url: `/basic/entrust/workingPersonCertificate/export`,
    method: "post",
    data,
  });
}
// 获取员工证书详细信息
export function getPersonCertificate(certificateId) {
  return request({
    url: '/basic/entrust/workingPersonCertificate/getInfo/' + certificateId,
    method: 'get'
  })
}

// 新增员工证书
export function addPersonCertificate(data) {
  return request({
    url: '/basic/entrust/workingPersonCertificate/add',
    method: 'post',
    data: data
  })
}

// 修改员工证书
export function updatePersonCertificate(data) {
  return request({
    url: '/basic/entrust/workingPersonCertificate/edit',
    method: 'post',
    data: data
  })
}

// 删除员工证书
export function delPersonCertificate(certificateIds) {
  return request({
    url: '/basic/entrust/workingPersonCertificate/delete/' + certificateIds,
    method: 'get'
  })
}
